<?php 
if($this->params['controller']=='pages'){
	$action = (isset($this->params['pass'][0]))?$this->params['pass'][0]:'display';
}else{
	$action = $this->params['action'];
}
?>
<div id="language">
    <div class="english">
		<?php //echo $html->link("&nbsp;", array('language'=>'eng','action'=>$action),array('class'=>'change_language','escape'=>false)); ?>
		<?php echo $html->link("&nbsp;", '/eng/pages',array('class'=>'change_language','escape'=>false)); ?>
    </div>
    <div class="polish">
    	<?php // echo $html->link("&nbsp;", array('language'=>'pol','action'=>$action),array('class'=>'change_language','escape'=>false)); ?>
    	<?php echo $html->link("&nbsp;", '/pol/pages',array('class'=>'change_language','escape'=>false)); ?>
    </div>
</div>
